Range Majorities and Minorities in Arrays

نویسندگان

  • Djamal Belazzougui
  • Travis Gagie
  • J. Ian Munro
  • Gonzalo Navarro
  • Yakov Nekrich
چکیده

Karpinski and Nekrich (2008) introduced the problem of parameterized range majority, which asks us to preprocess a string of length n such that, given the endpoints of a range, one can quickly find all the distinct elements whose relative frequencies in that range are more than a threshold τ . Subsequent authors have reduced their time and space bounds such that, when τ is fixed at preprocessing time, we need either O(n lg(1/τ)) space and optimal O(1/τ) query time or linear space and O((1/τ) lg lg σ) query time, where σ is the alphabet size. In this paper we give the first linear-space solution with optimal O(1/τ ) query time, even with variable τ (i.e., specified with the query). For the case when σ is polynomial on the computer word size, our space is optimally compressed according to the symbol frequencies in the string. Otherwise, either the compressed space is increased by an arbitrarily small constant factor or the time rises to any function in (1/τ) · ω(1). We obtain the same results on the complementary problem of parameterized range minority introduced by Chan et al. (2015), who had achieved linear space and O(1/τ ) query time with variable τ .

برای دانلود متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

منابع مشابه

Cultural-Historical and Political Identity

The author elaborates his proposition concerning the distinction of culturalhistorical and political identity by differentiating cultural-historical majorities and minorities from political winners and losers. He points out to a democratic paradox according to which a state is governed by political minorities of winners and not by political majorities of losers. In multi-ethnic societies, holds...

متن کامل

Ethnic Minorities’ Impression Management in the Interview: Helping or Hindering?

Cross-cultural impression management (IM) has not been considered much, which is remarkable given the fast rate at which the labor market is becoming multicultural. This study investigated whether ethnic minorities and majorities differed in their preference for IM-tactics and how this affected ethnic minorities' interview outcomes. A preliminary study (focus groups/survey) showed that ethnic m...

متن کامل

The Political Efficiency of General Taxation

If political decisions are made by legislative majorities, a constitutional constraint requiring generality in the imposition of taxes will be economically efficient. In the absence of such a constraint, majorities will tend to impose differentially high taxes on members of political minorities, and such differentiation opens up several sources for resource waste. This argument /ends support fo...

متن کامل

The self-esteem motive in social influence: agreement with valued majorities and disagreement with derogated minorities.

This research provides evidence for the role of self-esteem in social influence; it demonstrates that the positions taken by self-relevant social groups can threaten people's self-esteem. Participants who wished to align themselves with a majority group and who learned that the group held a counterattitudinal position suffered a reduction in self-esteem. Similarly, participants who wished to di...

متن کامل

ذخیره در منابع من


  با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید

برای دانلود متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

عنوان ژورنال:
  • CoRR

دوره abs/1606.04495  شماره 

صفحات  -

تاریخ انتشار 2016